<?php session_start(); 
		if (!isset($_SESSION['user'])) {
			header("Location: login.php");
			exit;
		}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>Bảng Điều Khiển</title>
	<link rel="stylesheet" href="../css/admin-style.css" type="text/css" media="all" />
</head>
<body>
<!-- Header -->
<?php
	include_once("header.php");
	include_once("../service/productService.php");
	include_once("../service/categoryService.php");
	include_once("../service/userService.php");
?>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">
		
		<br />
		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>
			
			<!-- Content -->
			<div id="content">        
				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2>Báo Cáo Tổng Hợp</h2>
					</div>
					<!-- End Box Head -->
					
					<div class="table">
                    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                        	<tr>
                            	<th width="200">Tên Thông Số</th>
                                <th>Giá Trị</th>
                            </tr>
                            <tr>
                            	<td>Tổng số sản phẩm:</td>
                                <td><?php echo(getNumberOfProduct());?></td>
                            </tr>
                            <tr>
                            	<td>Tổng số loại hàng hóa:</td>
                                <td><?php echo(getTotalCategory());?></td>
                            </tr>
							<tr>
                            	<td>Số tài khoản người dùng:</td>
                                <td><?php echo(getNumberOfUser());?></td>
                            </tr>
                        </table>
                    </div>
				</div>
				<!-- End Box -->

			</div>
			<!-- End Content -->
			

			
			<div class="cl">&nbsp;</div>			
		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
<div id="footer">
    <?php include("footer.php");?>
</div>
<!-- End Footer -->
	
</body>
</html>
